% TEST_ID: LANG-EXPAND-0035
% CATEGORY: language/array-ops/ops
% 测试 .' 运算符

function test_transpose
    A = [1, 2, 3; 4, 5, 6];
    B = A.';
    assert(isequal(B, [1 4; 2 5; 3 6]));

    A = complex([1, 2, 3; 4, 5, 6], [7, 8, 9; 10, 11, 12]);
    B = A.';
    assert(isequal(B, complex([1, 4; 2, 5; 3, 6], [7, 10; 8, 11; 9, 12])));
end

